﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage.Master" AutoEventWireup="true"
    CodeBehind="MemberList.aspx.cs" Inherits="ZF.BLL.Admin.MemberList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 
    <!--自定义条件 开始-->
    <div class="tabHeadMenu">
        <a href="MemberList.aspx?mt=1" class='<%=(MemberType==1)?"action":"" %>'>网站会员</a> <a
        <a href="MemberList.aspx?mt=100" class='<%=(MemberType==100)?"action":"" %>'>系统管理员</a>
    </div>
    <!--自定义条件 结束-->
    <!--列表 开始-->
    <div class="tabContainer">
        <zf:GridView ID="gvList" runat="server" OnSorting="gvListSorting" OnPageIndexChanging="gvListPageChanging">
            <Columns>
                <zf:TemplateField IsKeyField="true" DefaultSortField="true" DefaultSortDirection="Descending" SortExpression="Member.MemberId">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="KeyLabel" Text='<%# Eval("Member.MemberId")%>'></asp:Label>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField IsCheckField="true">
                </zf:TemplateField>
                <zf:TemplateField IsSerialNoField="true">
                </zf:TemplateField>
                <zf:TemplateField HeaderText="帐号">
                    <ItemTemplate>
                        <%#  Eval("Member.Account")%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="邮箱">
                    <ItemTemplate>
                        <%#  Eval("Member.Email")%>
                    </ItemTemplate>
                </zf:TemplateField>
                
                <zf:TemplateField HeaderText="记录查看">
                    <ItemTemplate>
                        <a href="IntegralLog.aspx?Id=<%# Eval("Member.MemberId")%>">积分记录</a> |
                         <a href="IntegralLog.aspx?Id=<%# Eval("Member.MemberId")%>">充值记录</a>
                    </ItemTemplate>
                </zf:TemplateField>
                
              <zf:TemplateField HeaderText="注册时间"  DefaultSortDirection="Ascending" SortExpression="Member.AddTime">
                    <ItemTemplate>
                        <%#  Eval("Member.AddTime")%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="状态">
                    <ItemTemplate>
                        <%#  GetStatus((int)Eval("Member.Status"))%>
                        
                    </ItemTemplate>
                </zf:TemplateField>
                
                <zf:TemplateField HeaderText="操作">
                    <ItemTemplate>
                         <a href='MemberInfo.aspx?mid=<%# Eval("Member.MemberId")%>' >
                                查看</a> | <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='<%# Eval("Member.MemberId") %>'
                            OnClientClick="return confirm('是否确定要删除此记录');">删除</zf:LinkButton>
                    </ItemTemplate>
                </zf:TemplateField>
            </Columns>
        </zf:GridView>
    </div>
    <!--列表 结束-->
    <div class="mt5_ fc_">
    </div>
    <!--自定义按钮 开始-->
    <div class="btnContainer mt10_">
        <span class="fl_ mr10_">
            <input type="checkbox" class="checkAll" bind=".tab" />选中本页显示的所有记录</span>
        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='select'
            OnClientClick="return confirm('是否确定要删除选中记录');">删除选中的行</zf:LinkButton>
        <a href="MemberManage.aspx?ot=AddNew" class="<%=(MemberType==100)?"":"dn_" %>">添加系统管理员</a>
    </div>
    <!--自定义按钮 结束-->
    <div class="fc_ mt10_">
    </div>
    <!--搜索 开始-->
    <div class="searchContainer">
        <table>
            <tr>
                <td class="l">
                    搜索选项:
                </td>
                <td class="m">
                    <div class="c">
                        <span class="t">会员帐号:</span><span class="c">
                            <zf:TextBox runat="server" class="stxt" ID="tbAccount"></zf:TextBox></span>
      
                     
                        <zf:Button runat="server" ID="Button2" Text="搜 索" OnClick="Search" class="linkbtn" />
                        <zf:Button runat="server" ID="Button1" Text="全 部" OnClick="AllList" class="linkbtn" />
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <!--搜索 结束-->
</asp:Content>
